package com.homework.test19;

public class Teacher extends Student{
    public Teacher(String name, int age, String content) {
        super(name, age, content);
    }

    //空参
    public Teacher() {
    }

    public void eat() {
        System.out.println("年龄为：" + getAge() + "的" + getName() + "老师正在吃饭...");
    }

    public void talk() {
        System.out.println("年龄为：" + getAge() + "的" + getName() + "老师正在亢奋的讲着" + getContent() + "的知识......");
    }
}
